#ifndef FTP_H
#define FTP_H
#define NUM_COMMANDS 3
#define SIZE_BUFFER 32
#include "sockets.h"

class ftp : public sockets{
public:
    char *buf = new char[SIZE_BUFFER];
    int value;
    typedef int (*arrAct)(ftp *, char *arg);
    arrAct actions[NUM_COMMANDS];
    char commands[NUM_COMMANDS][5];

public:
    ftp();
    int ftpCreateSocket();
    int ftpWaitConnection();


private:
    struct userQuery;
    typedef userQuery *uQuery;
    uQuery sBuf;

    uQuery parseBuffer(ftp *, char *buffer);
    int tstAct0(ftp *);
    int tstAct1(ftp *);
    int tstAct2(ftp *);

};

#endif // FTP_H
